import request from './request'

/**
 * 根据角色名称分页获取角色列表
 */
export const APIRoleList = (params: IRoleListParams): RES<any> => request.get('/role/list', { params })
/**
 * 修改帐号状态
 */
export const APIRoleUpdateStatus = (id: number, status: number): RES<number> => request.post(`/role/updateStatus/${id}?status=${status}`)
/**
 * 获取所有角色
 */
export const APIRoleListAll = (): RES<IRoleListAllModel[]> => request.get('/role/listAll')
